﻿using Microsoft.Data.Sqlite;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace HDSmartCommunity.DAL
{
    public class DataFactory
    {
      /*  public static SQLiteConnection GetSQLConnection()
        {
            SQLiteConnection connection;
            connection = new SQLiteConnection(string.Format(@"Data Source={0}wwwroot/DataBase/HDData.db", AppDomain.CurrentDomain.BaseDirectory));
            return connection;
        }*/

        public static SqliteConnection GetSqliteConnection()
        {
            SqliteConnection connection;
            connection = new SqliteConnection(string.Format(@"Data Source={0}wwwroot/DataBase/HDData.db", AppDomain.CurrentDomain.BaseDirectory));
            return connection;
        }
    }
}
